﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;

namespace Ledict.ConditionExtract.BLL
{
    public class XF_PunishimentGrade_RelatStatusBLL
    {
        XF_PunishimentGrade_RelatStatusDAL dal = new XF_PunishimentGrade_RelatStatusDAL();

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(XF_PunishimentGrade_RelatStatusModel model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(string pgrID)
        {
            return dal.Delete(pgrID);
        }

        /// <summary>
        /// 获取是否被组合情形使用
        /// </summary>
        /// <param name="ccid">节点信息</param>
        /// <returns></returns>
        public bool GetPunishmentGrade(string causeid, string prGrade)
        {
            return dal.GetPunishmentGrade(causeid, prGrade);
        }

        }
}
